import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

// #ifdef APP-PLUS
var main = plus.android.runtimeMainActivity();  
var Context = plus.android.importClass("android.content.Context");  
var PowerManager = plus.android.importClass("android.os.PowerManager");  
var pm = main.getSystemService(Context.POWER_SERVICE);  
    pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "ANY_NAME").acquire(); 
// #endif

import uView from 'uview-ui';
Vue.use(uView);
import request from '@/common/util/request.js'
Vue.prototype.$request = request
import tabBar from 'components/tab-bar.vue'
Vue.component('tab-bar',tabBar)

import store from '@/store'

const app = new Vue({
	store,
	...App
})
app.$mount()
